//
//  RNOLNewHandHeaderView.m
//  RongNiuOnline
//
//  Created by apple on 2018/4/18.
//  Copyright © 2018年 rongniu. All rights reserved.
//

#import "RNOLNewHandHeaderView.h"

@interface RNOLNewHandHeaderView()


@property (weak, nonatomic) IBOutlet WGBProgressView *progressView;

@end


@implementation RNOLNewHandHeaderView


- (void)awakeFromNib{
    [super awakeFromNib];
    [self.progressView startAnimation];
}


- (instancetype)initWithFrame:(CGRect)frame
{
    frame.size.height = 250;
    self = [super initWithFrame:frame];
    if (self) {
        self.backgroundColor = kBgColor;
        self.userInteractionEnabled = YES;
        
        UIView *topView = [[NSBundle mainBundle] loadNibNamed:NSStringFromClass([RNOLNewHandHeaderView class]) owner:nil options:0].firstObject;
        topView.backgroundColor = kAppMainColor;
        topView.frame = CGRectMake(0, 0, KWIDTH , 120);
        [self addSubview: topView];

        UIView *bottomView = [[NSBundle mainBundle] loadNibNamed:NSStringFromClass([RNOLNewHandHeaderView class]) owner:nil options:0].lastObject;
        bottomView.frame = CGRectMake(0, CGRectGetMaxY(topView.frame)+15, KWIDTH , 100);
        [self addSubview: bottomView];
        
    }
    return self;
}


@end
